#ifndef PRINTERINFODIALOG_H
#define PRINTERINFODIALOG_H

#include <QDialog>
#include <QLabel>
#include <QPushButton>

class PrinterInfoDialog : public QDialog {
    Q_OBJECT
public:
    explicit PrinterInfoDialog(QWidget *parent = nullptr);

private slots:      // 实时验证输入合法性
    void onConfirm();
    void exitApplication();

private:
    QLabel* nameLabel;
    QLabel* titleLabel;
    QLabel* ipLabel;
    QLabel* portLabel;
    QPushButton *confirmButton;
    QPushButton *cancelButton;

    void setupUI();
    void applyStyles();
};


#endif // PRINTERINFODIALOG_H
